<?php 
class Admin_Model_TableColumn_Advertisement {
	
	protected $id;
    protected $vi_tri;
    protected $position_name;
    protected $page_id;
    protected $page_name;
    protected $id_khach_hang;
    protected $ten_khach_hang;
    protected $id_goi_quang_cao;
    protected $ten_goi_quang_cao;
    protected $uu_tien;
    protected $image_url;
    protected $mota;
    protected $ngay_het_han;
    protected $trang_thai;
    protected $nguoi_tao;
    protected $ngay_tao;
    protected $nguoi_cap_nhat;
    protected $ngay_cap_nhat; 
    protected $ten_nguoi_tao;
    protected $ten_nguoi_cap_nhat;
    protected $url;
    
	public function __construct(array $options = null) {
        if (is_array($options)) {
            $this->setOptions($options);
        }
    }

    public function setOptions(array $options) {
        $methods = get_class_methods($this);
        
        foreach ($options as $key => $value) {
            $method = 'set' . ucfirst($key);
            
            if (in_array($method, $methods)) {
                $this->$method($value);
            }
        }
        return $this;
    }

    public function __set($name, $value) {
        $method = 'set' . $name;
        
        if (('mapper' == $name) || !method_exists($this, $method)) {
            throw new Exception('Invalid content property');
        }
        
        $this->$method($value);
    }

    public function __get($name) {
        $method = 'get' . $name;
        
        if (('mapper' == $name) || !method_exists($this, $method)) {
            throw new Exception('Invalid content property');
        }
        
        return $this->$method();
    }

	public function getId() {
        return $this->id;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function getVi_tri() {
        return $this->vi_tri;
    }

    public function setVi_tri($vi_tri) {
        $this->vi_tri = $vi_tri;
    }
    
	public function getPosition_name() {
        return $this->position_name;
    }

    public function setPosition_name($position_name) {
        $this->position_name = $position_name;
    }

	public function getPage_id() {
        return $this->page_id;
    }

    public function setPage_id($page_id) {
        $this->page_id = $page_id;
    }
    
	public function getPage_name() {
        return $this->page_name;
    }

    public function setPage_name($page_name) {
        $this->page_name = $page_name;
    }
    
	public function getId_khach_hang() {
        return $this->id_khach_hang;
    }

    public function setId_khach_hang($id_khach_hang) {
        $this->id_khach_hang = $id_khach_hang;
    }
    
	public function getTen_khach_hang() {
        return $this->ten_khach_hang;
    }

    public function setTen_khach_hang($ten_khach_hang) {
        $this->ten_khach_hang = $ten_khach_hang;
    }
    
	public function getId_goi_quang_cao() {
        return $this->id_goi_quang_cao;
    }

    public function setId_goi_quang_cao($id_goi_quang_cao) {
        $this->id_goi_quang_cao = $id_goi_quang_cao;
    }
    
	public function getTen_goi_quang_cao() {
        return $this->ten_goi_quang_cao;
    }

    public function setTen_goi_quang_cao($ten_goi_quang_cao) {
        $this->ten_goi_quang_cao = $ten_goi_quang_cao;
    }
    
    public function getUu_tien() {
        return $this->uu_tien;
    }

    public function setUu_tien($uu_tien) {
        $this->uu_tien = $uu_tien;
    }

    public function getImage_url() {
        return $this->image_url;
    }

    public function setImage_url($image_url) {
        $this->image_url = $image_url;
    }

	public function getMota() {
        return $this->mota;
    }

    public function setMota($mota) {
        $this->mota = $mota;
    }
    
	public function getNgay_het_han() {
        return $this->ngay_het_han;
    }

    public function setNgay_het_han($ngay_het_han) {
        $this->ngay_het_han = $ngay_het_han;
    }
    
	public function getTrang_thai() {
        return $this->trang_thai;
    }

    public function setTrang_thai($trang_thai) {
        $this->trang_thai = $trang_thai;
    }

    public function getNguoi_tao() {
        return $this->nguoi_tao;
    }

    public function setNguoi_tao($nguoi_tao) {
        $this->nguoi_tao = $nguoi_tao;
    }

	public function getNgay_tao() {
        return $this->ngay_tao;
    }

    public function setNgay_tao($ngay_tao) {
        $this->ngay_tao = $ngay_tao;
    }

	public function getNguoi_cap_nhat() {
        return $this->nguoi_cap_nhat;
    }

    public function setNguoi_cap_nhat($nguoi_cap_nhat) {
        $this->nguoi_cap_nhat = $nguoi_cap_nhat;
    }

    public function getNgay_cap_nhat() {
        return $this->ngay_cap_nhat;
    }

    public function setNgay_cap_nhat($ngay_cap_nhat) {
        $this->ngay_cap_nhat = $ngay_cap_nhat;
    }

	public function getTen_nguoi_cap_nhat() {
		return $this->ten_nguoi_cap_nhat;
	}
	
	public function setTen_nguoi_cap_nhat($ten_nguoi_cap_nhat) {
		$this->ten_nguoi_cap_nhat = $ten_nguoi_cap_nhat;
	}
	
	public function getTen_nguoi_tao() {
		return $this->ten_nguoi_tao;
	}
    
	public function setTen_nguoi_tao($ten_nguoi_tao) {
		$this->ten_nguoi_tao = $ten_nguoi_tao;
	}
	
	public function getUrl() {
		return $this->url;
	}
	
	public function setUrl($url) {
		$this->url = $url;
	}
    
}
?>